<!DOCTYPE html>
<html lang="zh-CN">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <style>
      .outer {
        width: 1300px;
        height: 900px;
        border: 1px solid black;
      }
      .outer:hover .box {
        width: 1300px;
      }
      .box {
        width: 200px;
        height: 100px;
        background-color: orange;

        /* 让所有能过渡的属性，都过渡 */
        transition-property: all;

        /* 设置一个时间，所有人都可以用 */
        transition-duration: 5s;
        /* 延迟时间 */
        /* transition-delay: 2s; */
      }
      .box1 {
        background-color: red;
        /* transition-timing-function: ease;默认值，平滑过渡，从慢到快到慢，在子元素设置 */
        transition-timing-function: ease;
      }
      .box2 {
        background-color: skyblue;
        transition-timing-function: linear;
      }
      .box3 {
        background-color: yellow;
        transition-timing-function: ease-in;
      }
      .box4 {
        background-color: green;
        transition-timing-function: ease-out;
      }
      .box5 {
        background-color: blue;
        transition-timing-function: ease-in-out;
      }
      .box6 {
        background-color: chocolate;
        transition-timing-function: step-start;
      }
      .box7 {
        background-color: olivedrab;
        transition-timing-function: step-end;
      }
      .box8 {
        background-color: darkorchid;
        transition-timing-function: steps(20, end);
      }
      .box9 {
        background-color: rgb(20, 17, 223);
        transition-timing-function: cubic-bezier(0.28, 1.09, 0.75, 1.2);
      }
    </style>
  </head>
  <body>
    <div class="outer">
      <div class="box box1">ease;默认值，平滑过渡，从慢到快到慢</div>
      <div class="box box2">linear(匀速)</div>
      <div class="box box3">ease-in(先慢再快)</div>
      <div class="box box4">ease-out(先快再慢)</div>
      <div class="box box5">ease-in-out（慢，快，慢）</div>
      <div class="box box6">step-start不考虑过渡时间，直接就是终点</div>
      <div class="box box7">
        step-end考虑过渡时间，但无过渡效果，过渡时间到了以后，瞬间到达终点
      </div>
      <div class="box box8">steps(20, end)分步过渡</div>
      <div class="box box9">贝塞尔曲线：https://cubic-bezier.com</div>
    </div>
  </body>
</html>
